package com.magic.gre.base.dialog;

import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

/**
 * Author: Lmoumou
 * Date: 2018-12-10 14:39
 * 文件名: LoadingDialog
 * 描述:
 */
public class LoadingDialog extends BaseCenterDialog {
    private AnimationDrawable animationDrawable;

    @Override
    protected void initView(View view) {
        ImageView loadingImageView = (ImageView) view.findViewById(com.noname.lib_base_java.R.id.loading_ImageView);
        loadingImageView.setImageResource(com.noname.lib_base_java.R.drawable.loading_anim);
        animationDrawable = (AnimationDrawable) loadingImageView.getDrawable();
        animationDrawable.start();
    }

    @Override
    protected int setViewId() {
        return com.noname.lib_base_java.R.layout.dialog_load_ing;
    }

    @Override
    protected void initBundle(Bundle bundle) {

    }

    @Override
    protected float halfTpValue() {
        return super.halfTpValue();
    }

    @Override
    public void dismissThis(boolean isResume) {
        super.dismissThis(isResume);
    }
}
